// Created by Roman Novitsky on 04.07.2009

using System.Drawing;
using System.Xml.Serialization;
using MobilePal.State;


namespace MobilePal.Views.ButtonsView
{
  using System;


  public class ButtonsViewSettings : ViewSettings
  {
    [XmlAttribute]
    public string ButtonFocusedForeColor
    {
      get; set;
    }

    [XmlAttribute]
    public string ButtonForeColor
    {
      get;
      set;
    }

    [XmlAttribute]
    public string ButtonOnBackColor
    {
      get;
      set;
    }

    [XmlAttribute]
    public string ButtonOffBackColor
    {
      get;
      set;
    }

    [XmlAttribute]
    public string ButtonOnToggledBackColor
    {
      get;
      set;
    }

    [XmlAttribute]
    public string ButtonOffToggledBackColor
    {
      get;
      set;
    }


    public ButtonsViewSettings()
    {
      NodesLabelFormat = "Start {0}";
      InProgressNodesLabelFormat = "Stop {0}";

      ButtonFocusedForeColor = "FFe0e0e0";
      ButtonForeColor = "FF686868";

      ButtonOnBackColor = "DarkGreen";
      ButtonOffBackColor = "DarkRed";

      ButtonOnToggledBackColor = "FF7cfc00";
      ButtonOffToggledBackColor = "FFff8040";

      PanelBackColor = "FF303030";

      BackOrder = false;
    }


    [XmlAttribute]
    public string InProgressNodesLabelFormat
    {
      get;
      set;
    }

    [XmlAttribute]
    public string NodesLabelFormat
    {
      get;
      set;
    }

    [XmlAttribute]
    public string PanelBackColor
    {
      get;
      set;
    }

    [XmlAttribute]
    public bool BackOrder
    {
      get; set;
    }
  }
}